﻿$(function () {
    $('.cal-ati').removeClass('ui-state-focus');
    $('.cal-ati[groupid=' + crnGroupId + ']').addClass('ui-state-focus');
    $('.cal-ati').click(function () {
        $('.cal-ati').removeClass('ui-state-focus');
        $(this).addClass('ui-state-focus');
        crnGroupId = parseInt($(this).attr('groupid'));
        var year = parseInt($('.calendar-moths .red').attr('year'));
        var month = parseInt($('.calendar-moths .red').attr('month'));

        displayCalendar(month, year);
    });
});